package com.dingup.provider.feign.client.paike.user;

import com.dingup.api.model.classInfo.ClassUserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by wancheng on 2018/10/30.
 */
@Component
@FeignClient(value = "p-pk")
public interface PaikeUserFeignClient {

    /**
     * 删除学生未完成课节
     *
     * @param studentId
     * @param classId
     */
    @RequestMapping(value = "/feign/paike/user/delete_by_student_id.do", method = RequestMethod.POST)
    public void deleteStudent(@RequestBody ClassUserInfo classUserInfo);

    /**
     * 添加学生课节
     *
     */
    @RequestMapping(value = "/feign/paike/user/add_by_student.do", method = RequestMethod.POST)
    public void addStudent(@RequestBody ClassUserInfo classUserInfo);
}
